<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>SqlStatement class</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="mysql-xdevapi-session.starttransaction.html">« Session::startTransaction</a></li>
      <li style="float: right;"><a href="mysql-xdevapi-sqlstatement.bind.html">SqlStatement::bind »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.mysql-xdevapi.html">Mysql_xdevapi</a></li>
    <li>SqlStatement class</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="class.mysql-xdevapi-sqlstatement" class="reference">

 <h1 class="title">SqlStatement class</h1>
 

 <div class="partintro"><p class="verinfo">(PECL mysql-xdevapi &gt;= 8.0.11)</p>


  <div class="section" id="mysql-xdevapi-sqlstatement.intro">
   <h2 class="title">简介</h2>
   <p class="para">

   </p>
  </div>


  <div class="section" id="mysql-xdevapi-sqlstatement.synopsis">
   <h2 class="title">类摘要</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <span class="modifier">class</span> <strong class="classname">mysql_xdevapi\SqlStatement</strong>
     </span>
     {</div>

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Constants */</div>
    <div class="fieldsynopsis">
     <span class="modifier">const</span>
     <span class="type">int</span>
      <var class="fieldsynopsis_varname"><a href="class.mysql-xdevapi-sqlstatement.html#mysql-xdevapi-sqlstatement.constants.execute-async"><var class="varname">EXECUTE_ASYNC</var></a></var><span class="initializer"> = 1</span>;</div>

    <div class="fieldsynopsis"><span class="modifier">const</span>
     <span class="type">int</span>
      <var class="fieldsynopsis_varname"><a href="class.mysql-xdevapi-sqlstatement.html#mysql-xdevapi-sqlstatement.constants.buffered"><var class="varname">BUFFERED</var></a></var><span class="initializer"> = 2</span>;</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 属性 */</div>
    <div class="fieldsynopsis"><span class="modifier">public</span>
      <var class="varname"><a href="class.mysql-xdevapi-sqlstatement.html#mysql-xdevapi-sqlstatement.props.statement">$<var class="varname">statement</var></a></var>;</div>


    
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>bind</strong></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$param</code></span>): <span class="type"><a href="class.mysql-xdevapi-sqlstatement.html" class="type mysql_xdevapi\SqlStatement">mysql_xdevapi\SqlStatement</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><strong>execute</strong></span>(): <span class="type"><a href="class.mysql-xdevapi-result.html" class="type mysql_xdevapi\Result">mysql_xdevapi\Result</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><strong>getNextResult</strong></span>(): <span class="type"><a href="class.mysql-xdevapi-result.html" class="type mysql_xdevapi\Result">mysql_xdevapi\Result</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><strong>getResult</strong></span>(): <span class="type"><a href="class.mysql-xdevapi-result.html" class="type mysql_xdevapi\Result">mysql_xdevapi\Result</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><strong>hasMoreResults</strong></span>(): <span class="type">bool</span></div>

   }</div>


  </div>

  

  <div class="section" id="mysql-xdevapi-sqlstatement.props">
   <h2 class="title">属性</h2>
   <dl>
    
     <dt id="mysql-xdevapi-sqlstatement.props.statement"><var class="varname">statement</var></dt>

     <dd>

      <p class="para"/>
     </dd>

    
   </dl>

  </div>


  

  <div class="section" id="mysql-xdevapi-sqlstatement.constants">
   <h2 class="title">预定义常量</h2>
   <dl>

    
     <dt id="mysql-xdevapi-sqlstatement.constants.execute-async"><strong><code>mysql_xdevapi\SqlStatement::EXECUTE_ASYNC</code></strong></dt>

     <dd>

      <p class="para"/>
     </dd>

    

    
     <dt id="mysql-xdevapi-sqlstatement.constants.buffered"><strong><code>mysql_xdevapi\SqlStatement::BUFFERED</code></strong></dt>

     <dd>

      <p class="para"/>
     </dd>

    

   </dl>

  </div>



 </div>

 











































<h2>目录</h2><ul class="chunklist chunklist_reference"><li><a href="mysql-xdevapi-sqlstatement.bind.html">SqlStatement::bind</a> — Bind statement parameters</li><li><a href="mysql-xdevapi-sqlstatement.construct.html">SqlStatement::__construct</a> — Description constructor</li><li><a href="mysql-xdevapi-sqlstatement.execute.html">SqlStatement::execute</a> — Execute the operation</li><li><a href="mysql-xdevapi-sqlstatement.getnextresult.html">SqlStatement::getNextResult</a> — Get next result</li><li><a href="mysql-xdevapi-sqlstatement.getresult.html">SqlStatement::getResult</a> — Get result</li><li><a href="mysql-xdevapi-sqlstatement.hasmoreresults.html">SqlStatement::hasMoreResults</a> — Check for more results</li></ul>
</div>
</div></div></body></html>